package com.yuqiao.read.design.command;

import java.util.ArrayList;
import java.util.List;

public class RemoteControllerTest {
    public static void main(String[] args) {
//        SimpleRemoteController remote = new SimpleRemoteController();//遥控
//        Light light = new Light();//电灯
//        LightOnCommand lightOnCommand = new LightOnCommand(light);//开灯命令
//        remote.setCommand(lightOnCommand);//给遥控发送命令
//        remote.buttonWasPressed();//按下遥控按钮
//
//        GarageDoor garageDoor = new GarageDoor();
//        GarageDoorUpCommand garageDoorUpCommand = new GarageDoorUpCommand(garageDoor);
//        remote.setCommand(garageDoorUpCommand);
//        remote.buttonWasPressed();
        List<Integer> classId = new ArrayList<Integer>();
        classId.add(null);
        if(classId.contains(null)){
            System.out.println("args = [" + true + "]");
        }
    }
}
